import service from "./index.js";
const reserveApi = {
    add(courseId){
        return service.get('/reserve',{params:{courseId:courseId}}).then(resp=>resp.data)
    },
    getComments(courseId){
        return service.get('/reserve/getComments',{params:{courseId:courseId}}).then(resp=>resp.data)
    },
    comment(reserve){
        return service.post('/reserve',reserve).then(resp=>resp.data)
    }
}
export default reserveApi